class GameUIView extends BaseEuiView {

    public PkProgress: GamePkProgressBar;
    public Info1: UserInfoComponent;
    public Info2: UserInfoComponent;
    public GameName: eui.Label;
    public GameGroup: eui.Group;

    public constructor(controller: BaseController, parent: eui.Group) {
        super(controller, parent)

        this.skinName = "resource/skins/GameUISkin.exml"
    }

    protected childrenCreated(): void {
        if (this.PkProgress) {
            console.log("PkProgressPkProgressPkProgress " + this.scaleX);
            console.log(this.width);
            this.PkProgress.SetProgress(5, 5)
        }
    }

    private _game: BaseGameControl;
    public SetGame(game: AllGameConsts): void {
        this._game = AllGames.MakeGame(game)
        this._game.InitGame(this.GameGroup, null)
    }
}